﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.IO;
using System.Configuration;
using CompanyBussiness;

namespace Website.admin.Control
{
    public partial class cTypeProperty : System.Web.UI.UserControl
    {
        NewsManagement newsMana = new NewsManagement();
        ProductManagement proMana = new ProductManagement();
        LanguagesManagement languageMana = new LanguagesManagement();
        CompanyBussiness.TypeProduct typeProduct;
        CompanyBussiness.TypeProperty typeProperty;
        CompanyBussiness.Language language;
        CompanyBussiness.Product product;
        CheckValid cv = new CheckValid();
        string strFileName = "";
        bool AddOrUp = false;
        int STRproductID;
        string error = "";
        string modulCode;

        protected void Page_Load(object sender, EventArgs e)
        {
            modulCode = Request.QueryString["Mod"];

            if (Request[CONST.QUERYSTRING_PRODUCT] != null)
            {
                STRproductID = int.Parse(Request[CONST.QUERYSTRING_PRODUCT].ToString());
                
            }
            this.LoadForm();
        }

        protected void LoadForm()
        {
            try
            {
                
                //if (STRproductID != 0)
                //{
                //    typeProperty = proMana.GetListTypePropertyByProductID(STRproductID);
                //    //product = proMana.GetProductByID(STRproductID);
                //}
               
                //txtTitle.Text = metadata.Title;
                //txtKeyword.Text = metadata.MetaKeyword;
                //txtDescription.Text = metadata.MetaDesciption;

            }
            catch (Exception)
            {

            }
        }

        protected void btnSave_Click(object sender, EventArgs e)
        {

        }

        protected void btnCancel_Click(object sender, EventArgs e)
        {

        }
    }
}